{if $full_page}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$title}</title>
<link rel="stylesheet" href="Res/boot/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="Res/boot/css/bootstrap-theme.min.css" type="text/css" media="screen" />
<script type="text/javascript" src="Res/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="Res/js/jquery.cookie.js"></script>
<script type="text/javascript" src="Res/boot/js/bootstrap.min.js"></script>
<script type="text/javascript" src="Res/js/listTable.js"></script>
<link rel="stylesheet" href="Res/css/page.css" type="text/css" />
<link rel="stylesheet" href="Res/css/global.css" type="text/css" />
{literal}
<style>
    .listDiv{margin:0 auto;}  
    table tbody td span:hover{background-color:#00E8D7}
</style>
{/literal}
</head>
<body>
<div class="container-fluid">
	<div class="row-fluid">
            <div class="span12 panel panel-info">                
                <span class="cp_title">日誌管理</span>
                <div class="panel-heading">
                    <label for="action_code">日誌類型:</label>
                    <input class="input-medium search-query" id="log_type" name="log_type" type="text" placeholder="日誌類型" />   
                    
                    <label for="action_url">用戶名稱:</label>
                    <input class="input-medium search-query" id="user_name" name="user_name" type="text" placeholder="用戶名稱" />   
                    
                    <button type="button" id="btn_search" class="btn btn-success">查找</button>                        
                </div>
 
                <div class="listDiv" id="listDiv">
{/if}
                <table id="data_table_id" class="table table-hover table-bordered">
                    <thead>
                    <tr>                        
                        <th>ID</th>
                        <th>用户名</th>
                        <th>类型</th>
                        <th>内容</th>
                        <th>操作时间</th>
                        <th>IP</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>    
                        {foreach from=$data.pageData item=row}
                        <tr>
                            <td>{$row.id}</td>
                            <td>{$row.user_name}</td>
                            <td>{$row.log_type}</td>                            
                            <td>{$row.log_content}</td>
                            <td title="{$row.time_format_str}">{$row.time_format}</td>
                            <td>{$row.log_ip}</td>
                            <td style="text-align:center;">
                                <button type="button" class="btn btn-info" title="删除" onclick="listTable.remove({$row.log_id})" aria-label="Left Align">
                                    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                                </button>
                            </td>
                        </tr>
                        {/foreach}
                    </tbody>
                    <tfoot>
                        <!-- 分页数据 -->
                        <tr style="text-align:center;margin: 0 auto;">
                            <td colspan="8"><div class="iPageHtml">{$data.pageHtml}</div></td>
                        </tr>
                    </tfoot>
                </table>
{if $full_page}
                </div>
            </div>
	</div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
    listTable.m = 'query';
    listTable.id = 'listDiv';
    $("#btn_search").click(function(){
        listTable.filter['page'] =1;
        listTable.filter['user_name'] = $("#user_name").val();
        listTable.filter['log_type'] = $("#log_type").val();
        listTable.loadList();
    });
</script>
</body>
</html>
{/if}

